import { ElMessage } from 'element-plus'

const Message = {
  error: (msg: any) => {
    ElMessage({
      type: 'error',
      message: msg,
      duration: 2000
    })
  },
  success: (msg: any) => {
    ElMessage({
      type: 'success',
      message: msg,
      duration: 2000
    })
  },
  warning: (msg: any) => {
    ElMessage({
      type: 'warning',
      message: msg,
      duration: 2000
    })
  }
}
export default Message
